package com.cgwx.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

public enum MachiningType implements InfoEnum{
    YM("YM","研磨"),
    SK("SK","数控加工"),
    DX("DX","定心加工"),
    QT("QT","其他"),
            ;

    private String code;

    @JsonValue
    private String info;

    MachiningType(String code, String info) {
        this.code = code;
        this.info = info;
    }

    @Override
    public String getSelfCode() {
        return this.code;
    }

    @Override
    public String getSelfInfo() {
        return this.info;
    }
}
